<?php

namespace app\common\service;

use app\common\service\Base;
use app\common\model\Dictionary as DictionaryModel;

class Dictionary extends Base {

     public function __construct() {
         parent::__construct();
         $this->currentModel = new DictionaryModel();
     }

     public function getDictionaryQuery($requestMap)
     {
         $list = $this->currentModel->where(getMapFromRequest($requestMap['condition']))->order("sort asc")->paginate(config("paginate.list_rows"),false,["query"=>$requestMap['page']]);
         return $list;
     }

}